package com.idsmanager.oauth.service.dto.user;

import com.idsmanager.oauth.domain.security.Privilege;
import com.idsmanager.oauth.domain.security.User;

import java.util.List;

public class UserTableDto extends UserDto{


    private String password;

    private String repassword;


    public UserTableDto() {
    }

    public UserTableDto(User user) {
        super(user);
    }


    public List<Privilege> getAllPrivileges() {
        return Privilege.availablePrivileges();
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRepassword() {
        return repassword;
    }

    public void setRepassword(String repassword) {
        this.repassword = repassword;
    }
}
